{template 'common/header'}
<script language="javascript" src="../addons/ewei_shopping/template/mobile/res/js/amrnb.js"></script>
<div class="panel panel-default">
	<div class="table-responsive panel-body">
		<table class="table">
			<thead>
				<tr>
					<th style="width:150px">专家名称</th>
					<th style="width:250px">课堂名称</th>
                    <th>播放次数</th>
					<th>收藏数</th>
					
					<th>状态</th>
					<th>试听</th>
					<th style="width:200px; text-align:right;">操作</th>
				</tr>
			</thead>
			<tbody>

				{loop $voices $item}
				<tr <?php if($item['ding']==1){ echo "style='color:red'";} ?>>
					<td  > <?php if($item['ding']==1){ echo "(置顶)";} ?>{$item['zjname']}</td>
					<td >{$item['title']}</td>
                    <td >{$item['listen_num']}</td>
					<td >{$item['collect']}</td>
					<td >{if $item['status']==2}已审核{else} 未审核{/if}</td>
					<td> 
						<?php if($item['ding']==1){  }else{?>
                        <a href="{php echo $this->createWebUrl('classheader', array('arm' => $item['voice_id']))}">下载试听</a>
                    <?php } ?>
					</td>
					<td style="text-align:right; position:relative;">
						
                       <?php if($item['ding']==1){ ?> <a href="{php echo $this->createWebUrl('classedit', array('id' => $item['id']))}" title="编辑">编辑</a><?php }else{ ?>
                        <a onclick="return confirm('此操作不可恢复，确认吗？'); return false;" 
                        href="{php echo $this->createWebUrl('class', array('delete' => 1,'id' => $item['id']))}" title="删除">删除</a>
						<a href="{php echo $this->createWebUrl('classfufei', array('id' => $item['id']))}" title="查看付费列表">查看付费列表</a>
						{if $item['status']==2}
						已审核
						{else}
						
						<a href="{php echo $this->createWebUrl('classcheck', array('id' => $item['id']))}" title="审核">审核</a>
						{/if}
                       <?php } ?>

					</td>
				</tr>
				{/loop}
			</tbody>
		</table>
	</div>
</div>


{$pager}
{template 'common/footer'}